import { contextBridge, ipcRenderer } from "electron";

contextBridge.exposeInMainWorld("electronAPI", {
  max: (...res: any) => ipcRenderer.invoke("max", ...res),
  min: (...res: any) => ipcRenderer.invoke("min", ...res),
  close: (...res: any) => ipcRenderer.invoke("close", ...res),
});
